<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/emCategory/saveCategory"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id"
                value="<#if (category.categoryCode)??>${category.categoryCode!''}</#if>">
            <fieldset class="dataset">
                <dl>
                    <dt><@label key="categoryCode.C,colon">设备类别编号：</@label></dt>
                    <dd>
                        <input name="categoryCode"
                            value="<#if (category.categoryCode)??>${category.categoryCode!''}</#if>"
                            size="32" type="text" maxlength="20" class="required alphanumeric toUp"<#if
                        (category.categoryCode)??> readonly="readonly"<#else>
                        remote="${rc.getContextPath()}/manage/emCategory/validateCategoryCode"</#if> warn="<@label key="emCategoryExist.M">设备类别编号已经存在</@label>"
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="categoryText.C,colon">设备类别描述：</@label></dt>
                    <dd>
                        <input name="categoryText"
                            value="<#if (category.categoryText)??>${category.categoryText!''}</#if>"
                            size="32" type="text" maxlength="60" class="required" />
                    </dd>
                </dl>
                <dl style="height:70px;width:420px">
                    <dt><@label key="memo.C,colon">备注：</@label></dt>
                    <dd>
                        <textarea style="width:285px;height:68px;" maxlength="200" name="memo" cols="45" rows="4"><#if (category.memo)??>${category.memo!''}</#if></textarea>
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp;</dt>
                    <dd>
                        <label><input type="checkbox" name="lockFlag" value="1"<#if
                            (category.lockFlag)?? && (category.lockFlag == 1)>
                            checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if (category.categoryCode)??> 
            <#assign createInfo=category/>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="save.B">保存</@label></button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="buttonActiveGrey">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </form>
</div>